package com.nhjf.model.teachers;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.system.User;
@SuppressWarnings("serial")
@Entity
@Table(name = "artPictures")
public class ArtPictures extends BaseModel{

	/**
     * 主键ID
     */
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "native")
    @Column(name = "id", unique = true)
    private Long id;
    /**
     * 作品地址
     */
    @Column(name = "artPicturesUrl")
    private String artPicturesUrl;
    /**
     * 作品简介
     */
    @Column(name = "artName")
    private String artName;
    /**
     * 创建时间
     */
    @Column(name = "creatTime")
    private Date creatTime;
    /**
     * 创建人
     */
    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "creatUser")
    private User user;
    /**
     * 创建人类型，1:老师2:学生
     */
    @Column(name = "userType")
    private Integer userType;
    /**
     * 图片的宽
     */
    @Column(name = "width")
    private Integer width;
    /**
     * 图片的高
     */
    @Column(name = "height")
    private Integer height;
    /**
     * 分类1
     */
    @Column(name = "typeOne")
    private Long typeOne;
    /**
     * 分类2
     */
    @Column(name = "typeTwo")
    private Long typeTwo;
    
	@Transient
	private String creatdate;
	@Transient
	private String avatar;
	@Transient
	private String nickname;
	@Transient
	private String province;
	@Transient
	private Integer isCollectionArt=0;
	
    public Integer getIsCollectionArt() {
		return isCollectionArt;
	}
	public void setIsCollectionArt(Integer isCollectionArt) {
		this.isCollectionArt = isCollectionArt;
	}
	/**
     *身份  1:小学  2:初中  3:高一  4:高二  5:高三  6:大学  7:老师  0:其它
     */
	@Transient
	private int identity;
	
	public int getIdentity() {
		return identity;
	}
	public void setIdentity(int identity) {
		this.identity = identity;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getCreatdate() {
		return creatdate;
	}
	public void setCreatdate(String creatdate) {
		this.creatdate = creatdate;
	}
	public Long getTypeOne() {
		return typeOne;
	}
	public void setTypeOne(Long typeOne) {
		this.typeOne = typeOne;
	}
	public Long getTypeTwo() {
		return typeTwo;
	}
	public void setTypeTwo(Long typeTwo) {
		this.typeTwo = typeTwo;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getArtPicturesUrl() {
		return artPicturesUrl;
	}
	public void setArtPicturesUrl(String artPicturesUrl) {
		this.artPicturesUrl = artPicturesUrl;
	}
	public String getArtName() {
		return artName;
	}
	public void setArtName(String artName) {
		this.artName = artName;
	}
	public Date getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
    
    
}
